package com.ck.ckcloud.networkmanagement.infrastructure.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ck.ckcloud.networkmanagement.infrastructure.persistence.DO.ResourceDO;
import com.ck.ckcloud.networkmanagement.infrastructure.persistence.DO.ResourceDOExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceMapper extends BaseMapper<ResourceDO> {

    int countByExample(ResourceDOExample example);

    int deleteByExample(ResourceDOExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ResourceDO record);

    int insertSelective(ResourceDO record);

    List<ResourceDO> selectByExample(ResourceDOExample example);

    ResourceDO selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ResourceDO record, @Param("example") ResourceDOExample example);

    int updateByExample(@Param("record") ResourceDO record, @Param("example") ResourceDOExample example);

    int updateByPrimaryKeySelective(ResourceDO record);

    int updateByPrimaryKey(ResourceDO record);

}
